<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Dialog 组件</title>
    <link rel="stylesheet" href="./demo1.css" />
    
  </head>
  <body>
    <div class="dialog-container">
      <div class="dialog-mask" onclick="closeDialog()"></div>
      <div class="dialog-body">111</div>
    </div>

    <button onclick="openDialog()">open dialog</button>

    <script src="./demo1.js"></script>
  </body>
</html>
